﻿using System;
using System.Diagnostics;

namespace Oxage.Common
{
	public class NotepadRunner //: Process
	{
		public string ExePath
		{
			get
			{
				return "notepad.exe";
			}
		}

		public void Run(string file)
		{
			Run(new NotepadOptions() { Source = file });
		}

		public void Run(NotepadOptions options = null)
		{
			var info = new ProcessStartInfo();
			info.FileName = this.ExePath;
			info.Arguments = "" + options;
			//info.UseShellExecute = false;
			//info.CreateNoWindow = true;
			//info.WindowStyle = ProcessWindowStyle.Hidden;
			//info.WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory;

			Process.Start(info);
		}
	}
}
